package com.dfbz.service.impl;

import com.dfbz.dao.MeetingDao;
import com.dfbz.model.Meeting;
import com.dfbz.service.MeetingServlet;

import java.util.List;

public class MeetingServletImp implements MeetingServlet {
    private MeetingDao meetingDao=new MeetingDao(Meeting.class);
    @Override
    public List<Meeting> getAllMeeting(String title, Integer startIndex, Integer pageSize) {
        return meetingDao.getAllMeeting(title,startIndex,pageSize);
    }

    @Override
    public Integer getAllMeetingNum(String title) {
        return meetingDao.getAllMeetingNum(title);
    }

    public Meeting getById(int meetingId) {
        return meetingDao.getById(meetingId);
    }
}
